package com.jy.adscm.zltx.bean;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.jy.adscm.core.interceptor.DateJsonDeserializer;

import java.io.Serializable;

/**
 * <p>
 * 图纸修订的培训记录
 * </p>
 *
 * @author yyy
 * @since 2018-11-08
 */
public class JyDrawingTrain implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private Long drawingId;
    private Long drawingEditId;
    private String drawingVersion;
    private Integer trainHost;
    @TableField(exist = false)
    private String trainHostName;
    private Date trainTime;
    private String trainJoinor;

    public String getTrainHostName() {
        return trainHostName;
    }

    public void setTrainHostName(String trainHostName) {
        this.trainHostName = trainHostName;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Long getDrawingId() {
        return drawingId;
    }

    public void setDrawingId(Long drawingId) {
        this.drawingId = drawingId;
    }

    public Long getDrawingEditId() {
        return drawingEditId;
    }

    public void setDrawingEditId(Long drawingEditId) {
        this.drawingEditId = drawingEditId;
    }

    public String getDrawingVersion() {
        return drawingVersion;
    }

    public void setDrawingVersion(String drawingVersion) {
        this.drawingVersion = drawingVersion;
    }

    public Integer getTrainHost() {
        return trainHost;
    }

    public void setTrainHost(Integer trainHost) {
        this.trainHost = trainHost;
    }

    public Date getTrainTime() {
        return trainTime;
    }

    @JsonDeserialize(using = DateJsonDeserializer.class)
    public void setTrainTime(Date trainTime) {
        this.trainTime = trainTime;
    }

    public String getTrainJoinor() {
        return trainJoinor;
    }

    public void setTrainJoinor(String trainJoinor) {
        this.trainJoinor = trainJoinor;
    }

    @Override
    public String toString() {
        return "JyDrawingTrain{" +
        "id=" + id +
        ", drawingId=" + drawingId +
        ", drawingEditId=" + drawingEditId +
        ", drawingVersion=" + drawingVersion +
        ", trainHost=" + trainHost +
        ", trainTime=" + trainTime +
        ", trainJoinor=" + trainJoinor +
        "}";
    }
}
